<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的购物车</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            border: 0;
        }
        .index_left{
            float: left;
            width:20%;
            background-color: darkgray;
        }
        .index_left_box{
            width: 100%;
            height:200px;
        }
        .index_left_box a{
            text-decoration: none;
        }
        .index_left_box a h1{
            padding-left: 100px;
            padding-top: 80px;
        }
        .index_right{
            float: left;
            width: 80%;
        }
        .index_right h1{
            padding-top: 5px;
            margin-left: 30px;
        }
        .index_right h1 input{
            padding-top: 5px;
            width: 50px;
            height: 20px;
            border-bottom: 1px solid black;
        }
        .index_right  h1 input:hover{
            background-color: white;
        }
        .index_right h2{
            font-size:50px;
            text-align: center;
            margin-top: 100px;
        }
        .index_right a{
            text-decoration: none;
        }
        .index_right span {
            float: left;
            border: 1px solid black;
            padding-top: 30px;
            padding-bottom: 30px;
            text-align: center;
            text-decoration: none;
            width: 24%;
            font-size: 40px;
            color: red;
        }
        .index_right span input{
            width:40px;
            height: 40px;
        }
        .index_right input:hover{
            background-color: yellow;
        }
        .index_right button:hover{
            background-color: yellow;
        }
        .index_right_top h3 {
            float: left;
            margin-top: 20px;
            border: 1px solid black;
            padding-top: 30px;
            padding-bottom: 30px;
            font-size: 40px;
            text-align: center;
            width: 24%;
            color: yellow;
        }
    </style>
</head>
<body>
<div class="index">
    <div class="index_left">
        <div class="index_left_box">
            <a href="/category/login"><h1>图书列表</h1></a>
        </div>
        <div class="index_left_box">
            <a href=""><h1>搜索图书</h1></a>
        </div>
        <div class="index_left_box">
            <a href=""><h1>个人中心</h1></a>
        </div>
        <div class="index_left_box">
            <a href="/order/cart"><h1>购物车</h1></a>
        </div>
        <div class="index_left_box">
            <a href=""><h1>我的订单</h1></a>
        </div>
        <div class="index_left_box">
            <a href="/"><h1>退出系统</h1></a>
        </div>
    </div>
    <div class="index_right">
        <h3 style="margin: 20px;float: right">用户名：${user}</h3>
        <h2>购物车</h2>
        <form action="/order/save" method="post">
            <h1>订单人：<input  name="user" value="${user}"/></h1>
            <div class="index_right_top">
                <h3>操作</h3>
                <h3>书名</h3>
                <h3>作者</h3>
                <h3>价格</h3>
            </div>
            <#if Session.cart??>
            <#list Session.cart as item>
            <span><input type="checkbox" name="books" value="${item.id}"/></span>
            <span>《${item.name}》</span>
            <span>${item.author}</span>
            <span>${item.price}</span>
        </#list>
    </#if>
    <input style="float: left;margin:50px;width: 200px;height: 100px;font-size: 50px;color: blue; border-radius:50px;" type="submit" value="结账"/>
    </form>
    <a href="/category/login"><button style="float: right;margin:50px;width: 300px;height: 100px;font-size: 50px;color: blue; border-radius:50px;" >继续购物</button></a>
</div>
</body>
</html>